<template>
	<view class="maskBox" @click="closeMask"
					:data-spmCntSuffix="'.maskBox@.closeMask@'"
                    :data-custom="1"
                    :data-spm="{}">
		<slot></slot>
	</view>
</template>

<script>

export default {
	props: {},
	components: {

	},
	computed: {},
	data() {
		return {
			
		};
	},
	onLoad() { },
	methods: {
		closeMask(){
			this.$emit('close')
		}
	}
};
</script>

<style lang="scss" scoped>
.maskBox{
    position: fixed;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, .5);
}
</style>
